/*
 * $Id$
 */

package corejs.expr;

import corejs.rt.ActivationRecord;
import corejs.rt.Value;
import corejs.util.XmlPrinter;

/**
 *
 * @author pengyu
 */
public class SubtractionExpr extends BinaryOperatorExpr {

   public SubtractionExpr(final Expression left, final Expression right){
      super(left, right);
   }

   @Override
   public void print(final XmlPrinter printer) {
      printer.open("subtraction").print(_left).print(_right).close();
   }

   @Override
   public Object eval(ActivationRecord scope) {
      return null;
   }

   @Override
   public Value accept(final ExpressionVisitor visitor) {
      return visitor.visitSubtraction(_left, _right);
   }
   
}
